package com.atguigu.gulimall.product.vo;

import com.atguigu.gulimall.product.entity.SkuImagesEntity;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * @author lk
 * @version 1.0.0
 * @Description 商品详情页Vo的封装
 * @createTime 2024/1/23 15:30
 */
@Data
public class SkuItemVo {

    /**
     * 1、sku基本信息的获取  pms_sku_info
     */
    private SkuInfoEntity skuInfo;

    /**
     * 2.sku的图片信息    pms_sku_images
     */
    private List<SkuImagesEntity> images;

    /**
     * 3、获取spu下的sku组合，销售属性
     */
    private List<SkuItemSaleAttrVo> saleAttr;

    /**
     * 4、获取spu的介绍 pms_spu_info_desc
     */
    private SpuInfoDescEntity desc;

    /**
     * 5、获取spu的规格参数信息
     */
    private List<SpuItemAttrGroupVo> groupAttrs;

    //6.是否有货
    private boolean hasStock = true;
}
